package com.example.springboot.pattern.strategy;

public class InternationalDeliveryStrategy implements DeliveryStrategy {
    @Override
    public double calculateCost(double weight) {
        if (weight <= 1) {
            return 15.0;
        }
        if (!(weight <= 5)) {
            return 25.0 + (weight - 5);
        }
        return 20.0;
    }
}
